package cn.com.cetccst.distribution.mqtt;

import com.google.gson.annotations.SerializedName;

/**
 * TODO 按照EMM的协议编写的
 * @param <T>
 */
public class Message<T> {
    @SerializedName("messageId")
    private String messageId;
    @SerializedName("timestamp")
    private long timestamp;
    @SerializedName("payload")
    private T payload;
    @SerializedName("signData")
    private String signData;

    public String getMessageId() {
        return messageId;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public T getPayload() {
        return payload;
    }

    public String getSignData() {
        return signData;
    }
}
